
class Base{
    static{
        System.out.println("Base中的静态代码块");
    }
    public Base() {
        System.out.println("Base中的构造方法");
    }
    {
        System.out.println("Base中的实例代码块");
    }

}

class Derived extends Base{
    static{
        System.out.println("Derived中的静态代码块");
    }
    public Derived() {
        System.out.println("Derived中的构造方法");
    }
    {
        System.out.println("Derived中的实例代码块");
    }
}
public class test {
    public static void main(String[] args) {
        Derived derived = new Derived();
    }
}
